Skip to content

ci2: Add all*config builds#75

Merged
nathanchance merged 9 commits into
ClangBuiltLinux:mainfrom
nathanchance:allconfig
Feb 6, 2021
Merged

ci2: Add all*config builds#75
nathanchance merged 9 commits into
ClangBuiltLinux:mainfrom
nathanchance:allconfig

Conversation

@nathanchance

Copy link
Copy Markdown
Member

NOTE: This is currently based on #74. I will rebase this after #73 and #74 are merged.

The general structure of this series:

  1. Enable support for the allconfigs build-set in generate_tuxsuite.py and generate_workflow.py.
  2. Add the anchors then format that section.
  3. Enable the builds for mainline, next, and 5.10 then format those sections.
  4. Regenerate the files.

If you would like anything broken down more, let me know.

@nickdesaulniers nickdesaulniers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see if there's simplifications to be had for the list of configs.

Comment thread generate_tuxsuite.py
{"make_variables": build["make_variables"]})
tuxsuite_buildset["sets"][0]["builds"] += [current_build]

if "defconfig" in str(build["config"]):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't build["config"] already a str? Why convert it again?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily, this could be a list.

Comment thread generator.yml Outdated
Comment thread generator.yml Outdated
Comment thread generator.yml Outdated
Comment thread generator.yml Outdated
It is advantageous to add support for all*config targets, as they will
help validate clang and LLVM further. With this change, we add a
separate build set when all*configs are detected in the matrix. Having a
separate build set will allow us to have two separate tuxsuite
instances, one for defconfigs (which should be pretty quick) and one for
all*configs, which can afford to take a while.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
We are only enabling allnoconfig right now because of other breakages :(

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance

Copy link
Copy Markdown
Member Author

Alright, I believe all of your comments should be addressed with this latest series. PTAL.

@nickdesaulniers nickdesaulniers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, good work! 🥓 👟 heads up @danrue @terceiro for some allyesconfig and allmodconfig builds.

Comment thread generate_tuxsuite.py Outdated
Comment on lines +78 to +80
defconfigs += [current_build]
else:
allconfigs += [current_build]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.append wouldn't create a new array

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you talking about doing this change?

diff --git a/generate_tuxsuite.py b/generate_tuxsuite.py
index ecccea4..e4e8ad0 100755
--- a/generate_tuxsuite.py
+++ b/generate_tuxsuite.py
@@ -75,9 +75,9 @@ def emit_tuxsuite_yml(config, tree):
                     {"make_variables": build["make_variables"]})

             if "defconfig" in str(build["config"]):
-                defconfigs += [current_build]
+                defconfigs.append(current_build)
             else:
-                allconfigs += [current_build]
+                allconfigs.append(current_build)

     tuxsuite_buildset["sets"][0]["builds"] = defconfigs
     if allconfigs:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance

Copy link
Copy Markdown
Member Author

Thanks for the review!

@nathanchance nathanchance merged commit 2a98584 into ClangBuiltLinux:main Feb 6, 2021
@nathanchance nathanchance deleted the allconfig branch February 6, 2021 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants